package com.qiangesoft.mybatisflex.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.qiangesoft.mybatisflex.base.BaseEntity;
import java.io.Serializable;
import java.math.BigInteger;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;

/**
 * 用户信息 实体类。
 *
 * @author admin
 * @since 1.0.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Table("sys_user")
public class SysUser extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id(keyType = KeyType.Auto)
    @Column("id")
    private Long id;

    /**
     * 部门id
     */
    @Column("dept_id")
    private Long deptId;

    /**
     * 账号
     */
    @Column("username")
    private String username;

    /**
     * 密码
     */
    @Column("password")
    private String password;

    /**
     * 昵称
     */
    @Column("nickname")
    private String nickname;

    /**
     * 用户性别（0男 1女）
     */
    @Column("sex")
    private String sex;

    /**
     * 头像地址
     */
    @Column("avatar")
    private String avatar;

}
